package com.saver.core.persistence.table;

import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

public class MonedaTable {
	
	private static final String TAG = "MonedaSQLite";
	private static final String TABLA = "MONEDAS";
	private static final String COL_ID_MONEDA= "ID_MONEDA";
	private static final String COL_NOMBRE = "NOMBRE";

	public void onCreate(SQLiteDatabase db) {
		Log.d(TAG, "creando tabla monedas");
		
		StringBuilder builder = new StringBuilder("CREATE TABLE ").append(TABLA).append(" (")
				.append(COL_ID_MONEDA).append(" INTEGER PRIMARY KEY, ")
				.append(COL_NOMBRE).append(" TEXT)");
		
		String createTable = builder.toString();
		Log.d(TAG, createTable);
		db.execSQL(createTable);
		
		Log.i(TAG, "tabla bancos monedas");
	}

}
